// Makes both the video and the slides half the size of the browser
// DOES NOT WORK WITH FLASHBLOCK INSTALLED! ...
// The slides seem to unregister themselves with the video, so the slides don't
// change in time with the video. The slides actually don't change at all!
;(function () {
    // infoq uses jQuery
    var p = $("#player");
    var s = $("#slideArea");
    document.body.innerHTML = "";
    var $body = $(document.body);
    var w = window.innerWidth;
    var h = window.innerHeight;
    var itemHeight = h*0.97;
    p[0].width=w/2;
    p[0].height=itemHeight;
    p.css({
        "position": "absolute"
    });
    s.width(w/2).height(itemHeight).css({
        "padding": "0",
        "left": w/2,
        "position": "absolute"
    });
    $body.append($("<div/>").append(p)).append(s);
}());
